﻿using System.Collections.Generic;
using BO;
using Model;

namespace Controller
{
    /// <summary>
    /// Summary description for VYC05Controller
    /// </summary>
    public class VYC05Controller
    {
        private static VYC05BO _vyc05Bo;
        public VYC05Controller()
        {
            //
            _vyc05Bo = new VYC05BO();
        }

        public List<ModelVYC05> GetAllList()
        {
            return _vyc05Bo.GetAllList();
        }

        public int AddData(ModelVYC05 model)
        {
            return _vyc05Bo.AddData(model);
        }

        public int EditData(ModelVYC05 model)
        {
            return _vyc05Bo.EditData(model);
        }

        public int DeleteData(ModelVYC05 model)
        {
            return _vyc05Bo.DeleteData(model);
        }

        public List<ModelVYC05> GetById(int id)
        {
            return _vyc05Bo.GetById(id);
        }
        public List<ModelVYC05> GetByUniqueId(string uniqueid)
        {
            return _vyc05Bo.GetByUniqueId(uniqueid);
        }

        public List<ModelVYC05> GetByIdLoaiChuyenMuc(int idloaicm)
        {
            return _vyc05Bo.GetByIdLoaiChuyenMuc(idloaicm);
        }
    }
}